package cn.zxl.spring.holiday.job.service;

import cn.zxl.spring.holiday.job.domain.Role;
import cn.zxl.spring.holiday.job.qo.QueryObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bofeifei
 * @since 2021-10-01
 */
public interface RoleService extends IService<Role> {
    PageInfo<Role> query(QueryObject qo);

    void saveRolAndPer(Role role, Long[] permissionIds);

    void updateRolAndPer(Role role, Long[] permissionIds);

    void deleteForRole(Long id);

    List<Role> findByEmployeeId(Long id);

    List<String> findRolesByEid(Long id);
}
